function removeSpaces(string) {
    return string.replace(/\\s+|\s+$/g,'');
}

function normal(string){
    var tmp;
    tmp = string.toUpperCase().split(' ').join('');
    ;
    return tmp;
}

jQuery( document ).ready( function($) {
    $(".fasta_edition").hover(function () {
        var color = $(this).css("background-color");
        $("#result").html("That div is <span style='color:" +
            color + ";'>" + color + "</span>.");
    });
    $( ".menu_item" ).hover(function(){
        $( this ).animate({
            opacity: 0.2
        }, 100 );
        $( this ).animate({
            opacity: 1
        }, 200 );
    });

    $().fadeTo('slow', 0.5, function() {});

    function doClear(theText) {
        theText.value = ""
    }

    function hideDiv(component) {
        jQuery(component).parent().fadeOut(500);
    }
    function showDiv() {
        if (document.getElementById) {
            document.getElementById('div').style.visibility = 'visible';
        }
    }



});
function changewidth(srcElement)
{

    var screenres = screen.width+'x'+screen.height;
    var elem = srcElement;
    alert(elem);

    if (screenres == "1024x768")
    {
        elem.style = "overflow: auto; height: 200px; width: 1015px;";
        alert("if");
    }
    else if (screenres == "1152x864")
    {
        elem.style = "overflow: auto; height: 200px; width: 1142px;";
        alert("else if");
    }
    else
    {
        elem.style = "overflow: auto; height: 800px; width: 1270px;";
        alert("else");
    }
    return false;
}
